<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>
			个人中心-账号设置
		</title>
		<meta name="keywords" content="">
		<meta name="description" content="">
		<meta name="renderer" content="">
		<meta name="copyright" content="">
		<meta name="robots" content="">
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/pkg-navigation.css">
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/module-captcha.css">
		<link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/Home/css/page-setting.css" >
		<script src="{{__PUBLIC__}}/Home/js/gtm.js" async=""></script>
		<script type="text/javascript" src="{{__PUBLIC__}}/Home/js/lib-txua.js"></script>
		<script type="text/javascript" src="{{__PUBLIC__}}/Home/js/ztrace-frms.js"></script>
		<script type="text/javascript" src="{{__PUBLIC__}}/uploadify/jquery.uploadify.min.js"></script>
         <link rel="stylesheet" type="text/css" href="{{__PUBLIC__}}/uploadify/uploadify.css">
		</script>
	</head>
	<!--载入公共模板 头部-->
	{{include file="VIEW_PATH/Common/header.php"}}
	<!--======================-->
	<div id="body_wrap">
		<div id="body" class="fm960">
			<div class="mu_wrap clearfix">
				<div class="mu_nav_wrap">
					<!-- 导航 -->
					<link rel="stylesheet" href="{{__PUBLIC__}}/Home/css/level.css">
					{{foreach from="$userData" value="$u"}}
					<div class="mu_nav_info">
						<div class="mu_nav_info_avatar">
							<div class="mu_nav_info_avatar_mk">
							</div>
							<img src="{{__ROOT__}}/{{$u['avatar']}}" alt="" height="100" width="100">
						</div>
						<p class="mu_nav_info_uname">
							{{$u['nickname']}}
						</p>
						<a target="_blank" style="width:45px;" class="mu_nav_info_ulot" href="">
							<span id="vip_level" class="vip_level0" style="float:left;width: 45px; display: inline-block; height: 14px; margin-top: 3px;">
							</span>
						</a>
					</div>
					{{endforeach}}
					<!-- info end -->
					<!-- nav -->
					<dl class="mu_nav">
						<dt>
							我的订单
						</dt>
						<dd>
							<a href="{{U('Member/index')}}">
								全部订单
							</a>
						</dd>
						<dd>
							<a href="">
								待付款
							</a>
						</dd>
						<dd>
							<a href="">
								待收货 <i class="mu_nav_count">2
									<i class="mu_nav_count_arw">
									</i></i>
							</a>
						</dd>
						<dd>
							<a href="">
								待评价
							</a>
						</dd>
						<dd>
							<a href="">
								退货退款
							</a>
						</dd>
					</dl>
					<dl class="mu_nav">
						<dt>
							<a href="{{U('member/wallet')}}">
								我的钱包
							</a>
						</dt>
					</dl>
					<dl class="mu_nav">
						<dt>
							<a href="{{U('Member/address')}}">
								地址管理
							</a>
						</dt>
					</dl>
					
					<dl class="mu_nav pb40">
						<dt>
							帐号设置
						</dt>
						<dd class="">
							<a href="{{U('Member/accountSettings')}}">
								基本信息
							</a>
						</dd>
						<dd class="">
							<a href="{{U('Member/change')}}">
								修改密码
							</a>
						</dd>
					</dl>
					<!-- nav end -->
				</div>
				<div class="mu_content_wrap">
					<div id="setting_box" class="fl">
						<div class="settings_title">
							<span>基本资料</span>
						</div>
						<div id="setting_form" class="setting_basic">
						
						<form id="avartarForm" enctype="multipart/form-data" method="post" action="">
								<dl>
									<dd>
										昵称：
									</dd>
									
									<dt class="unick">
										<input class="r3" name="nickname" value="" type="text" placeholder="用户昵称">
										<div class="iner">
										</div>
									</dt>
									
									<dd>
										性别：
									</dd>
									<dt class="sex" style="line-height: 30px;">
										<input name="sex" value="2" id="" style="margin:0" type="radio">
										女
										<input checked="checked" name="sex" value="1" id="" type="radio">
										男
									</dt>
									<dd>
										个人邮箱：
									</dd>
									<dt class="weibo">
										<input class="r3" name="email" type="text" placeholder="例：545151515@163.com">
									</dt>

	<div class="settings_title">
		<span>上传头像</span>
	</div>
	<div id="setting_box" class="fl">
   
    <div id="setting_form" class="setting_avartar">
        
            <!--<input name="type" value="avatar" type="hidden">-->
            <dl>
            	{{foreach from="$userData" value="$u"}}
                <dd>当前头像：</dd>
                 
                <dt><img class="head_bd r3" src="{{__ROOT__}}/{{$u['avatar']}}" style="width:150px;height: 150px;" alt=""></dt>
               {{endforeach}}
                <dd>上传新头像：</dd><dt style="position:relative;"><div lab="uploadFile">
    <input id="file" type="file" name="avatar" multiple="true">
    <span>建议使用正方形的图片，支持JPG、JPEG格式，100K以内。</span>
    <script type="text/javascript">
        $(function() {
//      	alert(0);
            $('#file').uploadify({
                'formData'     : {//POST数据
                    '<?php echo session_name();?>' : '<?php echo session_id();?>',
                },
                'fileTypeDesc' : '上传文件',//上传描述
                'fileTypeExts' : '*.jpg;*.png',
                'swf'      : '{{__PUBLIC__}}/uploadify/uploadify.swf',
                'uploader' : '{{U('upload')}}',
                'buttonText':'选择文件',
                'fileSizeLimit' : '2000KB',
                'uploadLimit' : 1,//上传文件数
                'width':65,
                'height':25,
                'successTimeout':10,//等待服务器响应时间
                'removeTimeout' : 0.2,//成功显示时间
                'onUploadSuccess' : function(file, data, response) {
					//转为json
                    data=$.parseJSON(data);
                    //获得图片地址
                    var imageUrl = data.url;
                    var li="<li path='"+data.path+"' url='"+data.url+"'><img src='"+imageUrl+"'/><input type='hidden' name='avatar' value='"+data.path+"'/></li>";
                    $("#uploadList ul").prepend(li);
                }
            });
        });
        
    </script>
    
</div>
</dt>
        <dd class="preview">预览：</dd><dt class="preview"><div id="uploadList" style="">
       <ul></ul>
</div></dt>
     <dd class="avartar_confirm">&nbsp;</dd><dt class=""><input value="确定" class="" style="width:50px;height:30px;background:silver;color:white;" type="submit"></dt>
            </dl>
        
    </div>
    
</div>
		</dl>
		</form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- 载入公共底部 -->
	{{include file="VIEW_PATH/Common/footer.php"}}
	</body>
	</body>
</html>